package org.study.es.boot.entity;

/**
 * 类的描述
 *
 * @author Administrator
 * @date 2021-12-31
 */
import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "es_book")
public class BookEntity implements Serializable {
    private static final long serialVersionUID = 8038418552003367277L;

    @Id
    private String id;
    private String title;
    private String author;
    private String postDate;
}
